package com.css.fxfzaqbz.modules.assess.service;

import com.css.fxfzaqbz.modules.assess.entity.SecondDisastersEntity;

import javax.servlet.http.HttpServletRequest;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author y1fan
 * @create 2022-09-14 18:05
 */
public interface SecondDisastersService {


    SecondDisastersEntity saveSecondDisasters(SecondDisastersEntity secondDisastersEntity)throws IOException;

    List<SecondDisastersEntity> getAllSecondDisasters(String id);

    SecondDisastersEntity getSecondDisastersById(String id);

    void deleteSecondDisasters(String id);

    SecondDisastersEntity getSecondDisastersByContent(String ssdContent, String ssdRelation);

    SecondDisastersEntity updateSecondDisastersById(SecondDisastersEntity secondDisastersEntity, String ssdId)throws IOException;

    SecondDisastersEntity updateSecondDisasters(SecondDisastersEntity secondDisastersEntity)throws IOException;

    Map<String, Object> getExcelByMouth(String id) throws Exception;

    Map<String, Object> getExcelByArea(String id) throws Exception;

    List<SecondDisastersEntity> getAllSecondDisastersTwo(String id);

    void firstSubmitSecondDisasters(String id);

    Boolean SecondDisastersIfRepetition(SecondDisastersEntity secondDisastersEntity);

    void addSecondDisastersDisaster(List<String> ids, String describe);

    void removeSecondDisasters(String id);

    void secondSubmitSecondDisasters(List<String> ids);

    List<SecondDisastersEntity> getSecondDisastersByIaId(String iaId);
}
